<html>
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>Document</title>
    <link rel="stylesheet" type="text/css" href="__BOOTSTRAP__/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="__BOOTSTRAP__/css/bootstrap-theme.min.css">
    <link rel="stylesheet" type="text/css" href="__CSS__/msg.css"/>


    <script type="text/javascript" src="__JS__/jquery-1.11.1.min.js"></script>
    <script type="text/javascript" src="__JS__/jquery.ui.widget.js"></script>
    <script type="text/javascript" src="__JS__/jquery.iframe-transport.js"></script>
    <script type="text/javascript" src="__JS__/jquery.fileupload.js"></script> 
    <script type="text/javascript" src="__BOOTSTRAP__/js/bootstrap.min.js"></script>

    <script type="javascript">
        $('#myTab a').click(function (e) {
            e.preventDefault()
            $(this).tab('show')
        })
    </script>
</head>
<body>

<div class="bs-example bs-example-tabs" role="tabpanel" data-example-id="togglable-tabs" id="table">
    <ul id="myTab" class="nav nav-tabs" role="tablist">
        <li role="presentation" class="active"><a href="#profile" id="home-tab" role="tab" data-toggle="tab" aria-controls="home" aria-expanded="true">编辑用户</a></li>
    </ul>
    <div id="myTabContent" class="tab-content home">
        <div role="tabpanel" class="tab-pane fade in active" id="home" aria-labelledBy="home-tab">
          <form action="{:U('User/editHandle')}" method="post">
                
                <table class="table table-bordered table-hover">
                    
                    <tr>
                        <td>员工ID：</td>
                        <td><input type="text" class="form-control" name="emp_id" value="{$emp_id}" readonly="YES" /></td>
                        <td rowspan="4" colspan="2">
                            <table class="table">
                                    <tbody>                                 
                                        <tr>
                                            <td rowspan="5" class="bm_td">
                                                 <img id="benren" width="105" height="132" src="{$img}" alt="">
                                            </td>
                                        </tr>
                                        <tr>                                            
                                            <td class="bm_td"><span>本人照片</span></td>
                                        </tr>
                                        <tr>
                                
                                            <td  class="bm_td">
                                            
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                        </td>
                    </tr>
                    <tr>
                        <td class="info">用户名：</td>
                        <td><input type="text" class="form-control" name="username" value="{$username}" readonly="YES"></td>
                    </tr>
                    <tr>
                        <td>邮箱：</td>
                        <td><input type="text" class="form-control" name="email" value="{$email}" readonly="YES"></td>
                    </tr>
                    <tr class="info">
                        <td>电话：</td>
                        <td><input type="text" class="form-control" name="tel" value="{$tel}"></td>
                    </tr>
                    <tr>
                        <td>年龄：</td>
                        <td><input type="text" class="form-control" name="age" value="{$age}"></td>  
                        <td>性别：</td>
                        <td>
                                <input type="text" class="form-control" name="sex" value="{$sex}" readonly="YES">
                        </td>
                    </tr>
                    <tr class="info">                       
                        <td>职位：</td>
                        <td>
                            <select class="form-control" name="position_id">
                                    <foreach name="position" item="v">
                                        <option value="{$v.id}">{$v.name}</option>
                                    </foreach>
                            </select>
                        </td> 
                        <td>所属组：</td>
                        <td>
                            <select name="group_id" id="" class="form-control">
                                    <option >---请选择所属组---</option>
                                <foreach name="group" item="v">
                                    <option value="{$v.id}" <if condition="$group_id eq $v['id']"> selected="selected" </if>  >{$v.title}</option>
                                </foreach>
                            </select>
                        </td>   
                    </tr>
                    <tr>
                    <tr>
                        <tr class="info">   
                         <td colspan="4">
                            <input type="hidden" name="id" value="{$id}">
                            <input type="submit" class="btn btn-primary btn-block">
                         </td>
                        </tr>
                    </tr>
                </table>

            </form>
        </div>
    </div>
</div>

</body>
</html>